#include "grap.h"
#include <userint.h>
#define SIZE 9
#define nr 'n'
#define bl 'b'
#define ab ' '
#define X 'x'
#define tmp 'X'

//calcule le score noir
int score_n (int tab[SIZE][SIZE])
{int i,j;
int Nbr_nr=0;
	for(i=1;i<SIZE;i++)				 
    		{											 
     		for(j=1;j<SIZE;j++)				  
     			{if (tab[i][j]=='n')
     				{Nbr_nr=Nbr_nr+1;}
				}
			}
return Nbr_nr;
}				

// calcule le score blanc
int score_b (int tab[SIZE][SIZE])
{int i,j;
int Nbr_bl=0;
	for(i=1;i<SIZE;i++)				 
    		{											 
     		for(j=1;j<SIZE;j++)				  
     			{if (tab[i][j]=='b')
     				{Nbr_bl=Nbr_bl+1;}
				}
			}
return Nbr_bl;
}				

